﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200098D RID: 2445
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ItemList : IMessage<ItemList>, IMessage, IEquatable<ItemList>, IDeepCloneable<ItemList>, IBufferMessage
	{
		// Token: 0x17001EF9 RID: 7929
		// (get) Token: 0x06006DC6 RID: 28102 RVA: 0x0012630C File Offset: 0x0012450C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ItemList> Parser
		{
			get
			{
				return ItemList._parser;
			}
		}

		// Token: 0x17001EFA RID: 7930
		// (get) Token: 0x06006DC7 RID: 28103 RVA: 0x00126313 File Offset: 0x00124513
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ItemListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001EFB RID: 7931
		// (get) Token: 0x06006DC8 RID: 28104 RVA: 0x00126325 File Offset: 0x00124525
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ItemList.Descriptor;
			}
		}

		// Token: 0x06006DC9 RID: 28105 RVA: 0x0012632C File Offset: 0x0012452C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList()
		{
		}

		// Token: 0x06006DCA RID: 28106 RVA: 0x0012633F File Offset: 0x0012453F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList(ItemList other) : this()
		{
			this.itemList_ = other.itemList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006DCB RID: 28107 RVA: 0x00126369 File Offset: 0x00124569
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Clone()
		{
			return new ItemList(this);
		}

		// Token: 0x17001EFC RID: 7932
		// (get) Token: 0x06006DCC RID: 28108 RVA: 0x00126371 File Offset: 0x00124571
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Item> ItemList_
		{
			get
			{
				return this.itemList_;
			}
		}

		// Token: 0x06006DCD RID: 28109 RVA: 0x00126379 File Offset: 0x00124579
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ItemList);
		}

		// Token: 0x06006DCE RID: 28110 RVA: 0x00126387 File Offset: 0x00124587
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ItemList other)
		{
			return other != null && (other == this || (this.itemList_.Equals(other.itemList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006DCF RID: 28111 RVA: 0x001263BC File Offset: 0x001245BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.itemList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006DD0 RID: 28112 RVA: 0x001263F0 File Offset: 0x001245F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006DD1 RID: 28113 RVA: 0x001263F8 File Offset: 0x001245F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006DD2 RID: 28114 RVA: 0x00126401 File Offset: 0x00124601
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.itemList_.WriteTo(ref output, ItemList._repeated_itemList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006DD3 RID: 28115 RVA: 0x00126428 File Offset: 0x00124628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.itemList_.CalculateSize(ItemList._repeated_itemList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006DD4 RID: 28116 RVA: 0x00126461 File Offset: 0x00124661
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ItemList other)
		{
			if (other == null)
			{
				return;
			}
			this.itemList_.Add(other.itemList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006DD5 RID: 28117 RVA: 0x0012648F File Offset: 0x0012468F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006DD6 RID: 28118 RVA: 0x00126498 File Offset: 0x00124698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.itemList_.AddEntriesFrom(ref input, ItemList._repeated_itemList_codec);
				}
			}
		}

		// Token: 0x040029D0 RID: 10704
		private static readonly MessageParser<ItemList> _parser = new MessageParser<ItemList>(() => new ItemList());

		// Token: 0x040029D1 RID: 10705
		private UnknownFieldSet _unknownFields;

		// Token: 0x040029D2 RID: 10706
		public const int ItemList_FieldNumber = 3;

		// Token: 0x040029D3 RID: 10707
		private static readonly FieldCodec<Item> _repeated_itemList_codec = FieldCodec.ForMessage<Item>(26U, Item.Parser);

		// Token: 0x040029D4 RID: 10708
		private readonly RepeatedField<Item> itemList_ = new RepeatedField<Item>();
	}
}
